import send from '../../http'
export default {
  // 获取抖音接入号信息
  getDouyinConfigs (data) {
    let req = {
      data,
      action: 'config.channel.getDouyinConfigs'
    }
    return send.fetch(req, 'post')
  },
  // 更新抖音接入号信息
  updateDouyinConfig (data) {
    let req = {
      data,
      action: 'config.channel.updateDouyinConfig'
    }
    return send.fetch(req, 'post')
  },
  // 删除抖音接入号
  removeDouyinConfig (data) {
    let req = {
      data,
      action: 'config.channel.removeDouyinConfig'
    }
    return send.fetch(req, 'post')
  },
  // 查询抖音接入号信息
  getDouyinConfigById (data) {
    let req = {
      data,
      action: 'config.channel.getDouyinConfigById'
    }
    return send.fetch(req, 'post')
  }
}
